/*
 * Copyright (C) 2012  E-dance Studio Harbin Institute of Technology 
 * Project:campusmobile
 * Author: 初楷博
 * Create Date: 2012-6-1下午04:01:44
 */
package hit.edance.campusmobile.chat.model;

import java.util.ArrayList;
import java.util.List;

import org.jivesoftware.smack.Chat;

/**   
 * 聊天信息包
 * 
 * @Project campusmobile
 * @Package hit.edance.campusmobile.chat.model
 * @Class ChatEntity
 * @Date 2012-6-1 下午04:01:44
 * @author 初楷博
 * @version 1.0
 * @since 1.0
 */
public class ChatEntity {
	private String jabberId = null;
	private String nickname = null;
	private int unreadMessageCount = 0;
	private List<ChatMessage> chatlist= new ArrayList<ChatMessage>();
	private Chat chat;
	
	public ChatEntity(String jabberId,String nickname){
		this.jabberId = jabberId;
		this.nickname = nickname;
	}
	
	/**
	 * @return the chat
	 */
	public Chat getChat() {
		return chat;
	}

	/**
	 * @param chat the chat to set
	 */
	public void setChat(Chat chat) {
		this.chat = chat;
	}

	/**
	 * @return the nickname
	 */
	public String getNickname() {
		return nickname;
	}

	/**
	 * @param nickname the nickname to set
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	/**
	 * @return the jabberId
	 */
	public String getJabberId() {
		return jabberId;
	}
	/**
	 * @param jabberId the jabberId to set
	 */
	public void setJabberId(String jabberId) {
		this.jabberId = jabberId;
	}
	/**
	 * @return the chatlist
	 */
	public List<ChatMessage> getChatlist() {
		return chatlist;
	}
	/**
	 * @param chatlist the chatlist to set
	 */
	public void setChatlist(List<ChatMessage> chatlist) {
		this.chatlist = chatlist;
	}

	/**
	 * @return the unreadMessageCount
	 */
	public int getUnreadMessageCount() {
		return unreadMessageCount;
	}

	/**
	 * @param unreadMessageCount the unreadMessageCount to set
	 */
	public void setUnreadMessageCount(int unreadMessageCount) {
		this.unreadMessageCount = unreadMessageCount;
	}
	public void addUnreadMessageCount(){
		this.unreadMessageCount++;
	}
	
}
